package cn.felord.message.config;

import org.springframework.stereotype.Component;

/**
 * RabbitMQ 基础参数配置
 *
 * @author dax.
 * @version v1.0
 * @since 2018 /2/23 11:47
 */
@Component
public class RabbitMqProperties {
    /**
     * 主机名
     */
    private String host="127.0.0.1";
    /**
     * 端口 默认5672
     */
    private int port = 5672;
    /**
     * 用户名 rabbit 默认guest  生产中需要停用该用户 并启用新用户
     */
    private String username = "rabbitAdmin";
    /**
     * 密码  对应guest 默认密码  生产中勿用
     */
    private String password = "123456789";
    /**
     * 虚拟主机  默认 /
     */
    private String virtualHost = "/";




    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getVirtualHost() {
        return virtualHost;
    }
}
